﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BrnMall.WeiXin.Sdk
{
    public class SessionResult:BaseResult
    {
        public string OpenId { get; set; }
        public string Session_Key { get; set; }
    }
    public class ComponentAccessTokenResponse
    {
        public string component_access_token { get; set; }
        public int expires_in { get; set; }
    }
    public class ComponentAccessTokenPostData
    {
        public string component_appid { get; set; }
        public string component_appsecret { get; set; }
        public string component_verify_ticket { get; set; }
    }
    public class GetPreAuthCodeResponse
    {
        public string pre_auth_code { get; set; }
        public int expires_in { get; set; }
    }
    public class Authorization
    {
        /// <summary>
        /// 
        /// </summary>
        public string authorizer_appid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string authorizer_access_token { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int expires_in { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string authorizer_refresh_token { get; set; }
    }

    public class AuthorizationResponse
    {
        public Authorization authorization_info { get; set; }
    }

    public class RefreshAuthorizerTokenResponse
    {
        public string authorizer_access_token { get; set; }
        public int expires_in { get; set; }
        public string authorizer_refresh_token { get; set; }
    }

    #region 授权人的基本信息
    public class Service_type_info
    {
        /// <summary>
        /// 
        /// </summary>
        public int id { get; set; }
    }

    public class Verify_type_info
    {
        /// <summary>
        /// 
        /// </summary>
        public int id { get; set; }
    }

    public class Authorizer_info
    {
        /// <summary>
        /// 微信SDK Demo Special
        /// </summary>
        public string nick_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string head_img { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Service_type_info service_type_info { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Verify_type_info verify_type_info { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string user_name { get; set; }
        /// <summary>
        /// 腾讯计算机系统有限公司
        /// </summary>
        public string principal_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string qrcode_url { get; set; }
        /// <summary>
        /// 时间的水缓缓流去
        /// </summary>
        public string signature { get; set; }
    }

    public class AuthorizerInfoResponse
    {
        /// <summary>
        /// 
        /// </summary>
        public Authorizer_info authorizer_info { get; set; }
    }
    #endregion
}
